﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MODEL
{
    public partial  class qgzx_position
    {
        #region 纯的实体对象 + ToPOCO()
        /// <summary>
        /// 纯的实体对象
        /// </summary>
        /// <returns></returns>
        public qgzx_position ToPOCO()
        {
            qgzx_position poco = new qgzx_position()
            {
                PositionId = this.PositionId,
                CompanyId = this.CompanyId,
                CompanyName = this.CompanyName,
                PositionTitle = this.PositionTitle,
                PositionName = this.PositionName,
                PositionType = this.PositionType,
                RecruitNum = this.RecruitNum,
                Treatment = this.Treatment,
                RequestGender = this.RequestGender,
                WorkAddress = this.WorkAddress,
                WorkTime = this.WorkTime,
                PositionDescrip = this.PositionDescrip,
                ReleaseDate = this.ReleaseDate,
                Deadlines = this.Deadlines,
                AuditStatus = this.AuditStatus,
                IsShow = this.IsShow,
                IsDel = this.IsDel,
                OnCompanyOwn = this.OnCompanyOwn,
                IsPoor = this.IsPoor,
                AuditReason = this.AuditReason,
                RecruitmentId = this.RecruitmentId
            };
            return poco;
        }
        #endregion


        #region 1.0 生成 TViewModel 实体对象 +ToViewModel
        /// <summary>
        /// 生成 很纯洁的 实体对象
        /// </summary>
        /// <returns></returns>
        public ViewModel.Position ToViewModel()
        {
            ViewModel.Position poco = new ViewModel.Position()
            {
                PositionId = this.PositionId,
                CompanyId = this.CompanyId,
                CompanyName = this.CompanyName,
                PositionTitle = this.PositionTitle,
                PositionName = this.PositionName,
                PositionType = this.PositionType,
                RecruitNum = this.RecruitNum,
                Treatment = this.Treatment,
                RequestGender = this.RequestGender,
                WorkAddress = this.WorkAddress,
                WorkTime = this.WorkTime,
                PositionDescrip = this.PositionDescrip,
                ReleaseDate = this.ReleaseDate,
                Deadlines = this.Deadlines,
                AuditStatus = this.AuditStatus,
                IsShow = this.IsShow,
                IsDel = this.IsDel,
                OnCompanyOwn = this.OnCompanyOwn,
                IsPoor = this.IsPoor,
                AuditReason = this.AuditReason,
                RecruitmentId = this.RecruitmentId
            };
            return poco;
        }
        #endregion
    }
}
